package com.xiaolin.oa.enums;

import lombok.Getter;

/**
 * @author 林裕强
 * @description 状态枚举
 * @since 2022/12/12
 */
@Getter
public enum StatusCode {

    // 通用响应信息
    OK(200, "操作成功"),
    FAIL(400, "操作失败"),
    SERVICE_ERR(410, "业务异常"),
    SYS_ERR(500, "系统异常");

    private final int code;
    private final String msg;

    StatusCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
